#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QtSql>

namespace Ui
{
    class MainWindowClass;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindowClass *ui;
    QSqlDatabase db;

    void LogMessage(QString message);
    bool createConnection(QString databaseName, QString username, QString password);
    bool initSqliteConnection(QString databaseName);

private slots:
    void on_btnExportSqlite_clicked();
    void on_btnMYSqlConnect_clicked();
    void on_btnAbout_clicked();
};

#endif // MAINWINDOW_H
